
package app.schedule;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


import org.springframework.scheduling.annotation.Scheduled;


public class SchedulerDemo {
	/**
	 * Logger for this class
	 */
	private static final Logger logger = LoggerFactory.getLogger(SchedulerDemo.class);

//	@Scheduled(cron="0 0 22 * * ?")
	@Scheduled(cron="0/2 * * * * ?")
	public void fireScheduledJobs() {
		try{
			logger.info("-------SchedulerDemo-------");
		}catch (Exception e) {
			logger.error("error:", e);
		}
	}

}
